<extend name="Public/base"/>

<block name="style">

<link href="__CSS__/jtbk.css" rel="stylesheet" type="text/css"/>
<!-- <link href="__CSS__/ace.min.css" rel="stylesheet" type="text/css"/>
 -->
</block>
<block name="content">   
    <ul class="nav nav-tabs">
      <li ><a href="{:U('Index/index')}"><i class="glyphicon glyphicon-home"></i>首页</a></li>
      <li class="active"><a href="{:U('Beike/add')}">资料上传</a></li>
      <li><a href="{:U('Index/search')}">资料搜索</a></li>
<!--       <li><a href="{:U('Index/addsubject')}">课程管理</a></li> -->
      <li><a href="{:U('Index/myupload','id='.$vo['id'])}" >我的上传情况</a><li>
   </ul>
	<!-- 标题栏 -->
           <h4 style="color:#5A81A8"><i class="glyphicon glyphicon-pencil">step1</i>集体备课资料登记</h4>  
  
        <form class="form-horizontal" role="form" method='post' id="form" name="form"  enctype="multipart/form-data" action="" >      
           <div class="form-group">
           <label class="col-sm-2 control-label no-padding-right" for="sid">学　　科</label>
           <div class="col-sm-4"><select name="sid" id="sid" class="form-control" >
            <option value="" > 请选择学科</option>
            <volist name="sublist" id="vo">
            <option value="{$vo.id}" >{$vo.subject}</option>            
            </volist>
             </select> 
             </div>                 
            </div>
            <div class="form-group">
               <label class="col-sm-2 control-label no-padding-right" for="grade">年　　级</label>
               <div class="col-sm-4"><select name="grade" id="grade" class="form-control" >
                <option value="" > 请选择年级</option>
                <option value="一年级上" > 一年级上</option>
                <option value="一年级下" > 一年级下</option>
                <option value="二年级上" > 二年级上</option>
                <option value="二年级下" > 二年级下</option>
                <option value="三年级上" > 三年级上</option>
                <option value="三年级下" > 三年级下</option>
                <option value="四年级上" > 四年级上</option>
                <option value="四年级上" > 四年级下</option>
                <option value="五年级上" > 五年级上</option>
                <option value="五年级下" > 五年级下</option>
                <option value="六年级上" > 六年级上</option>
                <option value="六年级下" > 六年级下</option>
                 </select>  
                 </div>                
            </div>

            <div class="form-group">
                 <label class="col-sm-2 control-label no-padding-right" for="year">学　　年</label>           
                <div class="col-sm-10"><input type="text" class="col-xs-10 col-sm-5" id="year" name="year" value="{:C('CUR_YEAR')}" placeholder="学年">
                 </div>
           </div>
            <div class="space-4"></div>  
            <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right" for="teacher">上传教师</label> 
                 <div class="col-sm-10">
                      <input type="text"  placeholder="请输入姓名" class="col-xs-10 col-sm-5" id="teacher" name="teacher" value="{$my.teacher}" /><span class="middle">
                      <span class="help-block col-xs-12 col-sm-7 ">如果未能正确显示姓名，请重新登录</span>
                      </span>
                    </div>
                  </div>
          <div class="space-4"></div>                                  
          <div class="form-group">
            <label class="col-sm-2 control-label no-padding-right" for="title"> 课文标题</label>
            <div class="col-sm-10">
              <input type="text" placeholder="请输入课题名称" class="col-xs-10 col-sm-5"  id="title" name="title" value="" />
           
            <div class="col-sm-10">
              <span class="help-block">请按以下格式填写“第几课+课文标题”如“第1课窃读记”或“第几单元综合练习”等</span>
            </div>
             </div>
          </div>  
        <div class="space-4"></div>
        <div class="form-group">            
                 <label class="col-sm-2 control-label no-padding-right" for="jxtime">第几教时</label>            
              <div class="col-sm-10" >  <input class="col-xs-9 col-sm-5" type="text"  id="jxtime" name="jxtime" value="第1教时" />    
            </div>
         </div>
        <div class="space-4"></div>
       <div class="form-group">
        <div class="col-xs-offset-1 col-xs-10">
         <label class="control-lable">集体备课内容：<span class="check-tips">（
         word文档的复制可在下面找到<img src="__MYIMG__/wordpaste.png">工具并粘贴对应word文档内容，以兼容更多的文档格式）</span></label>
            <div class="controls">
              <textarea name="content" class="text input-large"></textarea>
              {:hook('adminArticleEdit', array('name'=>'content','value'=>$data['content']))}
            </div>
            </div>
     </div>
     <div class="form-actions" style="margin-bottom:20px;height:30px;">
      <div class="col-md-offset-2 col-md-2"> 
        <button type="submit" class="btn btn-primary" id="submit-button"><span class="glyphicon glyphicon-ok"></span>  保存</button>
        </div>
        <div class="col-md-1">
        <button type="button" class="btn btn-danger" onclick="history.go(-1)"><span class="glyphicon glyphicon-remove"></span>  取消</button> 
         </div>
        </div>
      </form> 
      </div> 
      
 </div> 
</block>
<block name="script">
    <script type="text/javascript" src="__PUBLIC__/Core/js/ext/atwho/atwho.js"></script>
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/Core/js/ext/atwho//atwho.css"/>
    <script>
        //点击编辑或发表按钮之后
        $(function () {

            var submitCount = 0;


            function showSubmitError(message) {
                $('#submit-button').removeClass('disabled');
                toast.error(message, '错误');
            }

            function showSubmitSuccess(message, url) {
                toast.success(message, '温馨提示');
                setTimeout(function () {
                    location.href = url;
                }, 1500);
            }

            function showSubmitting() {
                $('#submit-button').attr('class', 'btn btn-primary disabled');
                $('#submit-content').text('正在提交');
            }
        })
    </script>
</block>
